#pragma once

#include "Object.h"
#include "VideoDriver.h"

class Circle : public Object
{
public:
	Circle();
	Circle(float posX, float posY, int radius = 1);
	~Circle();

	void Render();
	void Update(float frameTime);
	bool IsInRect(int x, int y);
	void HandleTouchAction(Touch *touch);

	void SetRadius(int i_radius);
	int GetRadius();

	bool IsCollideWithObject(Object* object);
	bool IsCollideWithRect(float x, float y, int width, int height);
	bool IsCollideWithCircle(Circle* circle);
	int IsCollideEdge();

private:
	int m_iRadius;
};